Solve Trigonometric Equation